package com.hrt.web.smsRecord.service.impl;

import java.sql.Timestamp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hrt.bean.SmsRecord;
import com.hrt.web.smsRecord.dao.SmsRecordDao;
import com.hrt.web.smsRecord.service.SmsRecordService;
@Service
@Transactional
public class SmsRecordServiceImpl implements SmsRecordService{
	@Autowired
	private SmsRecordDao smsRecordDao;
	@Override
	public void saveSmsRecord(SmsRecord smsRecord) throws Exception {
		smsRecordDao.saveEntity(smsRecord);
		
	}
	@Override
	public void updateSmsRecord(SmsRecord smsRecord) throws Exception{
		smsRecordDao.updateEntity(smsRecord);
		
	}
	@Override
	public Timestamp getDate() {
		return smsRecordDao.getDate();
	}
	@Override
	public SmsRecord getCodeByMobile(String mobile) {
		return smsRecordDao.getCodeByMobile(mobile);
	}

}
